﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace DNA.Mvc.Publishing
{
    [Table("publishing_TranslatedCopy")]
    public class TranslatedCopy
    {
        [Key]
        public int ID { get; set; }

        public virtual int ArticleID { get; set; }

        [ForeignKey("ArticleID")]
        public virtual Article Article { get; set; }

        [Column(TypeName="ntext")]
        public virtual string Body { get; set; }

        [Required]
        public virtual int ContentFormat { get; set; }

        [MaxLength(50)]
        public virtual string Language { get; set; }

        [Column(TypeName="ntext")]
        public virtual string Summary { get; set; }

        [MaxLength(255),Required]
        public virtual string Title { get; set; }
    }
}
